Skip to content

feat(orchestrator): add pipeline self-declaration#404

Open
JamyDev wants to merge 2 commits into
jamy/platform-pipelinefrom
jamy/orchestrator-pipeline
Open

feat(orchestrator): add pipeline self-declaration#404
JamyDev wants to merge 2 commits into
jamy/platform-pipelinefrom
jamy/orchestrator-pipeline

Conversation

@JamyDev

@JamyDev JamyDev commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Introduces submitqueue/orchestrator/pipeline.go with the orchestrator's self-declaration
  • Deps struct: logger, scope, storage, counter, and four extension factories — the service's public API toward deployers
  • Stages: all 12 pipeline stages as a []pipeline.Stage[Deps] typed table, each with primary controller + DLQ reconciler
  • PublishOnlyTopics: log, merge-conflict-check, runway-merge
  • Controllers struct + NewControllers: RPC controllers (Ping), not bound to any wire contract
  • Pure addition alongside existing main.go — no behavioral changes

Step 3 of the Modular Queue Wiring RFC. Stacked on #403.

Test plan

  • bazel build //submitqueue/orchestrator:go_default_library compiles
  • All existing tests pass
  • make gazelle — BUILD.bazel in sync
  • make fmt — code formatted

Issues

https://linear.app/uber/issue/CODEM-209/example-figure-out-a-better-structure-for-wiring-up

Stack

@JamyDev JamyDev changed the title feat(platform): add StageContext to pipeline.Stage constructors feat(orchestrator): add pipeline self-declaration Jul 20, 2026
@JamyDev
JamyDev force-pushed the jamy/platform-pipeline branch from b49618c to c37eaea Compare July 21, 2026 17:59
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch from e091f18 to 538faea Compare July 21, 2026 17:59
@JamyDev
JamyDev force-pushed the jamy/platform-pipeline branch from c37eaea to 55b55b4 Compare July 23, 2026 00:28
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch from 538faea to 1a44af2 Compare July 23, 2026 00:28
@JamyDev
JamyDev force-pushed the jamy/platform-pipeline branch from 55b55b4 to b386d5e Compare July 24, 2026 16:55
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch from 1a44af2 to ac8e2fe Compare July 24, 2026 16:55
@JamyDev
JamyDev marked this pull request as ready for review July 24, 2026 17:31
@JamyDev
JamyDev requested review from a team, behinddwalls and sbalabanov as code owners July 24, 2026 17:31
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch from ac8e2fe to b676033 Compare July 24, 2026 18:09
@JamyDev
JamyDev force-pushed the jamy/platform-pipeline branch from b386d5e to b49618c Compare July 24, 2026 18:09
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch from b676033 to ebbfac0 Compare July 24, 2026 18:32
@uber uber deleted a comment from CLAassistant Jul 24, 2026
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch from ebbfac0 to d8c5add Compare July 24, 2026 18:42
@uber uber deleted a comment from CLAassistant Jul 24, 2026
@JamyDev
JamyDev force-pushed the jamy/platform-pipeline branch from be2387a to 7acfd38 Compare July 24, 2026 18:59
JamyDev and others added 2 commits July 24, 2026 19:01
Introduce `submitqueue/orchestrator/pipeline.go` with three exports:

- `Deps` struct: the full set of dependencies (logger, scope, storage,
  counter, and four extension factories) the orchestrator pipeline
  needs. This struct IS the service's public API toward deployers.

- `Stages` slice: the complete 12-stage pipeline topology as a typed
  table of `pipeline.Stage[Deps]`. Each row declares a primary
  controller constructor and its DLQ reconciler. Adding a stage =
  adding one row.

- `PublishOnlyTopics`: topics the orchestrator publishes to but does
  not consume (log, merge-conflict-check, runway-merge).

- `Controllers` struct + `NewControllers`: RPC-facing controllers
  (currently Ping), NOT bound to any wire contract.

Pure addition alongside the existing main.go wiring — no behavioral
changes.

Ref: doc/rfc/submitqueue/modular-queue-wiring.md (Step 3)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The score controller package does not exist — scoring was folded into
the speculator. Remove the score stage from Stages, the Scorer field
from Deps, and the controller/score import. Update the pipeline
diagram comment accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JamyDev
JamyDev force-pushed the jamy/orchestrator-pipeline branch 2 times, most recently from c09aea1 to a3d65e3 Compare July 24, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants